
package com.cnksi.dwz.entity;

import com.cnksi.dwz.web.ILinked;

public class ShiroMenu implements ILinked
{

	private Integer menuid;

	private ShiroMenu pmenu;

	private String menuname;

	private String menuuri;

	public ShiroMenu(Integer menuid)
	{

		this.menuid = menuid;
	}

	public ShiroMenu(Integer menuid, Integer pmenuid, String menuname, String menuuri)
	{

		this.menuid = menuid;
		if (pmenuid != null)
		{
			this.pmenu = new ShiroMenu(pmenuid);
		}
		this.menuname = menuname;

		this.menuuri = menuuri;
	}

	public Integer getLinkid()
	{

		return this.menuid;
	}

	public ILinked getPLink()
	{

		return pmenu;
	}

	public String getLinkname()
	{

		return menuname;
	}

	public String getLinkURI()
	{

		return menuuri;
	}

	public String getTarget()
	{

		return "navTab";
	}

	public String getRel()
	{

		return "shirouser-list";
	}

}
